<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>众筹编辑</title>
<load href="__PUBLIC__/css/bootstrap.min.css" />
<import type='css' file="css.daterangepicker-bs3" />
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/jquery-ui.min.js" />
<import type='js' file="js.main" />
<import type='js' file="js.moment" />
<import type='js' file="js.daterangepicker" />
<script type="text/javascript">
$(function(){
	$('#pro_starttime').daterangepicker({ singleDatePicker: true }, function(start, end, label) {
		console.log(start.toISOString(), end.toISOString(), label);
	});
	$('#pro_endtime').daterangepicker({ singleDatePicker: true }, function(start, end, label) {
		console.log(start.toISOString(), end.toISOString(), label);
	});
})
</script>
</head>

<body id="body">
<div class="main-frame">
	<div class="position">众筹 > 众筹编辑</div>
	<!-- 图片资源开始 -->
	<div class="floatBackground" id="floatBackground" style="display: none;">
		<div class="bounced">
		<label class="closeImgResurces">X</label>
		<iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
		</div>
	</div>
	<!-- 图片资源结束 -->
	<div class="addobject">
		<div class="obj-form">
			<form name="form1" id="form1" action="{:U('Zchou/save',array('id'=>$info['id']))}" method="post" class="form-inline">
				<ul>
					<li>
						<label class="fl tle">众筹名称：</label>
						<span class="fl cnt">
						<input name="pro_name" value="{$info['pro_name']}" class="form-control" placeholder="众筹名称" style="width: 450px;"><em>*</em>
						</span>
					</li>
					<li>
						<label class="fl tle">所属基金会：</label>
						<span class="fl cnt">
							<select name="pid" class="template form-control">
					    		<volist name='jjhlist' id='v'>
					    		<option value="{$v.id}" <if condition="$v['id'] eq $info['pid']">selected="selected"</if>>{$v.j_name}</option>
					    		</volist>
					    	</select>
						</span>
					</li>
					<li>
						<label class="fl tle">缩略图：</label>
						<span class="fl cnt"><input name="pro_img" value="{$info['pro_img']}" id="thumbimg" class="form-control" placeholder="缩略图" style="width: 380px;"><a class="browse" f='thumbimg'>浏览···</a><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">开始日期：</label>
						<span class="fl cnt"><input name="pro_starttime" id="pro_starttime" readonly="readonly" class="txtlength200" style="width: 160px;" placeholder="开始日期" value="{$info['pro_starttime']}"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">结束日期：</label>
						<span class="fl cnt"><input name="pro_endtime" id="pro_endtime" readonly="readonly" class="txtlength200" style="width: 160px;" placeholder="结束日期" value="{$info['pro_endtime']}"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">众筹金额：</label>
						<span class="fl cnt"><input name="pro_summoney" class="txtlength200" style="width: 160px;" placeholder="众筹金额" value="{$info['pro_summoney']}"><em>*</em></span>
					</li>
					<li>
						<label class="fl tle">留言：</label>
						<span class="fl cnt"><textarea name="pro_talk" style="width: 450px;" class="form-control" rows="3" placeholder="留言">{$info['pro_talk']}</textarea></span>
					</li>
					
					<li><span class="dividerline"></span></li>

					<li>
						<label class="fl tle">众筹描述：</label>
						<span class="fl cnt"><textarea name="pro_des" style="width: 450px;" class="form-control" rows="3" placeholder="众筹描述">{$info['pro_des']}</textarea></span>
					</li>
					<li>
						<label class="fl tle">视频地址：</label>
						<span class="fl cnt"><textarea name="pro_video" style="width: 450px;" class="form-control" rows="3" placeholder="视频地址">{$info['pro_video']}</textarea></span>
					</li>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.config.js"></script>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.all.min.js"> </script>
				    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/lang/zh-cn/zh-cn.js"></script>
					<li>
						<label class="fl tle">项目介绍：</label>
						<span class="fl cnt">
							<textarea name="pro_content" id="editor" style="width: 900px; height:300px; overflow: hidden;">{$info['pro_content']}</textarea>
							<script>var ue = UE.getEditor('editor');</script>
						</span>
					</li>
					
					<if condition="$datecha gt 0 or $datecha eq 0">
					<li><span class="dividerline"></span></li>
					<li>
						<label class="fl tle">执行状态：</label>
						<span class="fl cnt">
							<input class="radio" type="radio" name="pro_state1" value="1" <if condition="$info['pro_state1'] eq 1">checked="checked"</if>> 开启
							<input class="radio" type="radio" name="pro_state1" value="0" style="margin-left:10px;" <if condition="$info['pro_state1'] eq 0">checked="checked"</if>> 结束
							<font style="color: #999; margin-right:15px;">（提示：活动结束后才执行这一步）</font>
						</span>
					</li>
					<li>
						<label class="fl tle">结束反馈：</label>
						<span class="fl cnt">
							<textarea name="pro_content1" id="editor1" style="width: 900px; height:300px; overflow: hidden;">{$info['pro_content1']}</textarea>
							<script>var ue = UE.getEditor('editor1');</script>
						</span>
					</li>
					</if>

					<li><span class="dividerline"></span></li>

					<li>
						<label class="fl tle">项目状态：</label>
						<span class="fl cnt">
							<input class="radio" type="radio" name="pro_state" value="1" <if condition="$info['pro_state'] eq 1">checked="checked"</if>> 开启
							<input class="radio" type="radio" name="pro_state" value="0" style="margin-left:10px;" <if condition="$info['pro_state'] eq 0">checked="checked"</if>> 关闭
							<font style="color: #999; margin-right:15px;">（默认开启）</font>
                             	发布人：<input name="pro_pubpeo" class="txtlength200" style="width: 100px; margin-right:15px;" value="{$info['pro_pubpeo']}" readonly="readonly">
                             	发布日期：<input name="pro_pubtime" class="txtlength200" style="width: 160px;" value="{$info['pro_pubtime']}">
						</span>
					</li>
					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><input type="submit" value="修 改" class="submitbtn" /> <a href="{:U('Zchou/index')}">取消</a></span>
					</li>
				</ul>
			</form>
		</div>
		<div class="obj-previewimg">
			<div class="instructions">
				<b>备注说明：</b><br>
				1、带有红色  “ * ” 项必填<br>
			</div>
		</div>
	</div>

</div>
</body>
</html>
